package crawler.web.beans;

import java.io.Serializable;

import library.database.mongo.ObjectId;

import com.sleepycat.persist.model.Entity;
import com.sleepycat.persist.model.PrimaryKey;
import com.sleepycat.persist.model.Relationship;
import com.sleepycat.persist.model.SecondaryKey;

/**
 * 页面内容
 * 
 * @author waynechen
 * 
 */
@Entity
public class PageFingerPrint implements Serializable {
	private static final long serialVersionUID = 8689876282745825368L;

	/**
	 * mongodb中的id
	 */
	@PrimaryKey
	private ObjectId _id;

	/**
	 * 网页的指纹信息
	 */
	@SecondaryKey(relate = Relationship.MANY_TO_ONE)
	private Long fingerPrint;

	@Override
	public String toString() {
		return "PageFinger\n [\n    _id=" + _id + "\n    fingerPrint=" + fingerPrint + "\n]";
	}

	public ObjectId get_id() {
		return _id;
	}

	public void set_id(ObjectId _id) {
		this._id = _id;
	}

	public Long getFingerPrint() {
		return fingerPrint;
	}

	public void setFingerPrint(Long fingerPrint) {
		this.fingerPrint = fingerPrint;
	}

}
